package com.sgr.services.impl;

import java.util.List;

import com.sgr.dao.ReservaDao;
import com.sgr.model.Reserva;
import com.sgr.services.ReservaService;

public class ReservaServiceImpl implements ReservaService {

	private ReservaDao reservaDao;

	public ReservaDao getReservaDao() {
		return reservaDao;
	}

	public void setReservaDao(ReservaDao reservaDao) {
		this.reservaDao = reservaDao;
	}
	@Override
	public void save(String nome) {
		Reserva res = new Reserva();
		reservaDao.save(res);
		
	}
	@Override
	public void update(Reserva res) {
		reservaDao.update(res);
	}

	
	 @Override
	 public void delete(Reserva res) {
		reservaDao.delete(res);
	}
	
	@Override
	public List findByName(String name) {
		return reservaDao.findByName(name);
	}

	@Override
	public Long count() {
		return reservaDao.count();
	}

	@Override
	public List findAll() {
		return reservaDao.findAll();
	}

	@Override
	public Reserva findByPk(int id) {
		return reservaDao.findByPk(id);
	}
}
